package top.suven.base.util.utilize;


public class Location { 
	
	//经度 Longitude 简写Lng
	 private double longitude; 
	//纬度 Latitude 简写Lat
    private double latitude;  
    
    private double distance;  
    
  
    public Location(double latitude, double longitude) {  
        this.latitude = format(latitude);  
        this.longitude = format(longitude);  
    }  
    public Location(double latitude, double longitude,double distance) {  
        this.latitude = format(latitude);  
        this.longitude = format(longitude); 
        this.distance = format(distance);
    }  
    
    private double format(double doubles){
    	return LatitudeLontitudeUtil.formatDouble(doubles);
    }
  
    public double getLatitude() {  
        return latitude;  
    }  
  
    public void setLatitude(double latitude) {  
        this.latitude = format(latitude);  
    }  
  
    public double getLongitude() {  
        return longitude;  
    }  
  
    public void setLongitude(double longitude) {  
        this.longitude = format(longitude);  
    }

	public double getDistance() {
		return distance;
	}

	public void setDistance(double distance) {
		this.distance = distance;
	}  
    
  
}  